projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a3bc9a
)
gdkwindow-win32.c: Fix build on Visual C++
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 6 Aug 2014 05:06:35 +0000
(13:06 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Wed, 6 Aug 2014 07:13:09 +0000
(15:13 +0800)
Since MSVC is more strict about the types that we try to do a compare, cast
old_ptr as HWND, as we know that it is a pointer...
https://bugzilla.gnome.org/show_bug.cgi?id=733768
gdk/win32/gdkwindow-win32.c
patch
|
blob
|
history
diff --git
a/gdk/win32/gdkwindow-win32.c
b/gdk/win32/gdkwindow-win32.c
index 5f2849697426adff73806782d56f556a85a5917c..d1652cfa34aa063743e8815d9502302aca5d6d59 100644
(file)
--- a/
gdk/win32/gdkwindow-win32.c
+++ b/
gdk/win32/gdkwindow-win32.c
@@
-1807,7
+1807,7
@@
gdk_win32_window_set_transient_for (GdkWindow *window,
w32_error = GetLastError ();
/* Don't re-set GWLP_HWNDPARENT to the same value */
- if (old_ptr == parent_id && w32_error == NO_ERROR)
+ if (
(HWND)
old_ptr == parent_id && w32_error == NO_ERROR)
return;
/* Don't return if it failed, try SetWindowLongPtr() anyway */